
function main ()
  require("util");
  require("globalConfig");
  require("setupUI");
	require("otherTask");

end

function test ()

	require("util");
  require("globalConfig");
	require("otherTask");
	require("doTaskPrepare");

	
	--local num = 0;
	--local  x, y = findHonor(num, 222,152,1986,845);--个人
	--local  x, y = findHonor(num, 820,185,1990,1153);--工会

	--reLogin();
	--findTreasureBox();
	--doTaskPrepareDeal({},"");
	--isPage("式神碎片");
end

-- lua异常捕捉
function error(msg)
  local errorMsg = "[Lua error]"..msg
  printFunction(errorMsg)    
end

--退出时隐藏HUD
function beforeUserExit()
  hideHUD(runing)
  hideHUD(troopsDonated)
end

--test();
main();
--xpcall(main, error)